<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title></title>
	<include file="Public/header" />
</head>
<body>
<script type="text/javascript">
	var booksInfoEditUrl="{:U('Depot/booksInfoCateSave')}";//更新数据
	var getbooksInfoUrl="{:U('Depot/get_booksInfoCate')}";
	var booksInfoDelUrl="{:U('Depot/booksInfoCateDel')}";
	var booksInfoExamineUrl="{:U('Depot/examinebooksInfoCate')}";
	var booksInfoClearUrl="{:U('Depot/booksInfoCateClear')}";
	var booksInfoUndoUrl="{:U('Depot/booksInfoCateUndo')}";
	var otherInboundAddUrl="{:U('Depot/otherInboundAddUrl')}";
	var cateId="{:I('id')}";
	var otherInboundCate="{:I('cid')}";
	var manua_id="{$detail['code']}";

	var pushinfoOrderUrl="{:U('Pushsendapi/booksinfoOrderSend')}";//推送接口
	<!-- using('../../../default/js/booksCateInfo.js'); -->
</script>
<script type="text/javascript" src="__PUBLIC__/default/js/booksCateInfo.js"></script>

	<table id="booksInfoDatagrid" toolbar="#booksInfo_tb"></table>
	<!-- 添加 -->
	<div id="booksInfoAddDialog" class="easyui-dialog" title="添加" style="width:500px;padding:10px 20px"  closed="true" buttons="#booksInfoAddButtons"  modal="true">
         <form id="booksInfoAddForm" method="post" novalidate>
			<div class="fitem">
                <label>账册编号</label>
                <input name="manua_id" type="text" id="manua_id"  class="easyui-textbox" data-options="readonly:true,height:30" style="background:#ccc;" />
            </div>
			<div class="fitem">
                <label>商品编码</label>
                <input name="goods_no" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,50]']" />
            </div>
            <div class="fitem">
                <label>商品名称</label>
                <input name="goods_name" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,200]']" />
            </div>
			<div class="fitem">
                <label>料号</label>
                <input name="source_no" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>规格</label>
                <input name="goods_spec" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>项号</label>
                <input name="item_no" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>料件性质</label>
                <input name="item_type" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>hs_code</label>
                <input name="hs_code" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>第一单位</label>
                <select class="easyui-combobox booksInfo_cate" name="unit1" id="unit1" style="width:70px;height:30px;" data-options="required:true,editable:false,panelHeight:'200',validType:['length[1,30]','selected[]']">
                     <volist name="unitlist" id="vo">
                        <option value="{$vo['unit_no']}">{$vo['unit_name']}</option>
                     </volist>
                </select>
            </div>
			<div class="fitem">
                <label>第二单位</label>
                <select class="easyui-combobox booksInfo_cate" name="unit2" id="unit2" style="width:70px;height:30px;" data-options="editable:200,panelHeight:'false'">
                     <volist name="unitlist" id="vo">
                        <option value="{$vo['unit_no']}">{$vo['unit_name']}</option>
                     </volist>
                </select>
            </div>
			<div class="fitem">
                <label>币制</label>
                <select class="easyui-combobox booksInfo_cate" name="current_type" id="current_type" style="width:70px;height:30px;" data-options="required:true,editable:false,panelHeight:'200',validType:['length[1,30]','selected[]']">
                     <volist name="coinlist" id="vo">
                        <option value="{$vo['coin_code']}">{$vo['coin_name']}</option>
                     </volist>
                </select>
            </div>
			<div class="fitem">
                <label>产销国</label>
                <select class="easyui-combobox booksInfo_cate" name="source" id="countrylist" style="width:70px;height:30px;" data-options="required:true,editable:false,panelHeight:'200',validType:['length[1,30]','selected[]']">
                     <volist name="countrylist" id="vo">
                        <option value="{$vo['country_code']}">{$vo['country_name']}</option>
                     </volist>
                </select>
            </div>
         </form>
    </div>
    <div id="booksInfoAddButtons">
    	<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="booksInfoObj.add('{:U('Depot/booksInfoCateAdd')}')" style="width:90px">添加</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#booksInfoAddDialog').dialog('close')" style="width:90px">取消</a>
    </div>
    <!-- /添加 -->
	<!-- 编辑 -->
    <div id="booksInfoEditDialog" class="easyui-dialog" style="width:400px;padding:10px 20px"
            closed="true" buttons="#booksInfoEditButtons"  modal="true">
        <form id="booksInfoEditForm" method="post" novalidate>    
            <input name="id"  type="hidden" />
			<div class="fitem">
                <label>账册编号</label>
                <input name="manua_id" type="text"  class="easyui-textbox" data-options="readonly:true,height:30" style="background:#ccc;" />
            </div>
			<div class="fitem">
                <label>商品编码</label>
                <input name="goods_no" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,50]']" />
            </div>
            <div class="fitem">
                <label>商品名称</label>
                <input name="goods_name" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,200]']" />
            </div>
			<div class="fitem">
                <label>料号</label>
                <input name="source_no" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>规格</label>
                <input name="goods_spec" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>项号</label>
                <input name="item_no" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>料件性质</label>
                <input name="item_type" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>hs_code</label>
                <input name="hs_code" type="text"  class="easyui-textbox" data-options="required:true,delay:1000,height:30,validType:['length[1,20]']" />
            </div>
			<div class="fitem">
                <label>第一单位</label>
				 <select class="easyui-combobox booksInfo_cate" name="unit1" id="unit1" style="width:70px;height:30px;" data-options="required:true,editable:false,panelHeight:'200',validType:['length[1,30]','selected[]']">
                     <volist name="unitlist" id="vo">
                        <option value="{$vo['unit_no']}">{$vo['unit_name']}</option>
                     </volist>
                </select>
            </div>
			<div class="fitem">
                <label>第二单位</label>
                <select class="easyui-combobox booksInfo_cate" name="unit2" id="unit2" style="width:70px;height:30px;" data-options="editable:false,panelHeight:'200'">
                     <volist name="unitlist" id="vo">
                        <option value="{$vo['unit_no']}">{$vo['unit_name']}</option>
                     </volist>
                </select>
            </div>
			<div class="fitem">
                <label>币制</label>
                <select class="easyui-combobox booksInfo_cate" name="current_type" id="current_type" style="width:70px;height:30px;" data-options="required:true,editable:false,panelHeight:'200',validType:['length[1,30]','selected[]']">
                     <volist name="coinlist" id="vo">
                        <option value="{$vo['coin_code']}">{$vo['coin_name']}</option>
                     </volist>
                </select>
            </div>
			<div class="fitem">
                <label>产销国</label>
                <select class="easyui-combobox booksInfo_cate" name="source" id="source" style="width:70px;height:30px;" data-options="required:true,editable:false,panelHeight:'200',validType:['length[1,30]','selected[]']">
                     <volist name="countrylist" id="vo">
                        <option value="{$vo['country_code']}">{$vo['country_name']}</option>
                     </volist>
                </select>
            </div>
        </form>
    </div>
    <div id="booksInfoEditButtons">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="booksInfoObj.save('{:U('Depot/booksInfoCateSave')}')" style="width:90px">更新</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:
    $('#booksInfoEditDialog').dialog('close')" style="width:90px">取消</a>
    </div>
    <!-- /编辑 -->
    <!-- 搜索栏 -->
    <div id="booksInfo_tb">
        <form id="booksInfoSearchForm" method="post" novalidate>
             <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon icon-all" plain="true" onclick="booksInfoObj.showAll()">全部</a>     
			 商品编号:<input class="easyui-textbox" name="goods_no" style="width:150px;height:30px;">
			 商品名称:<input class="easyui-textbox" name="goods_name" style="width:150px;height:30px;">
			 账册编号:
			 <select class="easyui-combobox" name="manua_id" style="width:170px;height:30px;">
				<option value="0">未选择</option>
                 <volist name="manua_idlist" id="vo">
                     <option value="{$vo['code']}">{$vo['code']}</option>
                 </volist>
             </select>
			<a href="#" class="easyui-linkbutton searchBar" iconCls="icon-search" style="height:30px;">搜索</a>
        </form>
		<a href="javascript:void(0)" onclick="booksInfoObj.addBar()" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true">添加</a>
        <a href="javascript:void(0)" onclick="booksInfoObj.editBar()" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true">修改</a>
        <a href="javascript:void(0)" onclick="booksInfoObj.removeBar()" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true">删除</a>
		<a href="javascript:void(0)" onclick="booksInfoObj.reloadBar()" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true">刷新</a>
		<a href="javascript:void(0)" onclick="booksInfoObj.saveBar()" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true">保存</a>
        <a href="javascript:void(0)" onclick="booksInfoObj.examineBar(1)" class="easyui-linkbutton" data-options="iconCls:'icon-key',plain:true">审核通过</a>
		<a href="javascript:void(0)" onclick="booksInfoObj.examineBar(2)" class="easyui-linkbutton" data-options="iconCls:'icon-key_delete',plain:true">审核不通过</a>
		<a href="javascript:void(0)" class="easyui-menubutton" data-options="menu:'#booksCateInfo_mm1',iconCls:'icon-recycle'">回收站</a>
		<div id="booksCateInfo_mm1" style="width:150px;">
			<div onclick="booksInfoObj.recycle()">查看</div>
			<div onclick="booksInfoObj.undoBar()" data-options="iconCls:'icon-undo'">恢复</div>
			<div onclick="booksInfoObj.clearBar()" data-options="iconCls:'icon-remove'">删除</div>
		</div>
		<a href="javascript:void(0)" onclick="booksInfoObj.addInboundBar()" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true">添加入库</a>
		<a href="javascript:void(0)" onclick="booksInfoObj.pushBar()" class="easyui-linkbutton" data-options="iconCls:'icon-world_go',plain:true">推送</a>
    </div>
    <!-- /搜索栏 -->
</body>